//
//  HaokaTopCell.m
//  BMProject
//
//  Created by chris on 16/1/2.
//  Copyright © 2016年 BMProject. All rights reserved.
//

#import "HaokaTopCell.h"
#import "DataModel.h"
#import "NSDate+Utils.h"
#import "OrderVc.h"
#import "UIViewController+order.h"

@implementation HaokaTopCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setInfo:(OrderDealModel *)model {
    self.numLa.text =     [NSString ignoreEmptyStr:model.id];
    self.statusLa.text =  [NSString ignoreEmptyStr:[_vc getOrderStatusNameFromtypeId:model.type.intValue andSignId:model.sign.intValue]];
    self.typeLa.text =    [NSString ignoreEmptyStr:[_vc getOrderTypeNameFromtypeId:model.type.intValue]];
    self.dateLa.text =    [[NSDate dateWithString:model.creatTime formatString:@"yyyyMMddHHmmss"] formatStringWithFormat:@"yyyy-MM-dd"];//20151202111348  2015-12-12

    //申请数目
    self.shenqingLa.text = @"";
}

- (void)setOrderContentInfo:(OrderDealDetailOrderContentInfo *)orderContentInfo {
    self.shenqingLa.text = [NSString ignoreEmptyStr:orderContentInfo.sqAmount];
}


@end
